import defaultSettings from '@/settings'

const title = defaultSettings.title || '大数据共享开放网'

export function getPageTitle(pageTitle) {
  if (pageTitle) {
    return `${pageTitle} - ${title}`
  }
  return `${title}`
}

export function getSystemTitle(systemName) {
  if (systemName) {
    return `${title} - ${systemName}`
  }
  return `${title}`
}